<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            width: 300px;
            height: 200px;
            margin: 40px auto;
            background: url("../images/500.jpg") center 100% no-repeat;
        }
    </style>
</head>
<body>
    <div></div>
<!--<img src="/images/500.jpg" alt="">-->
</body>
</html>